package com.itheima.store.service.impl;

import java.sql.SQLException;

import com.itheima.store.dao.SystemSettingDao;
import com.itheima.store.domain.SystemSetting;
import com.itheima.store.service.SystemSettingService;
import com.itheima.store.utils.BeanFactory;

public class SystemSettingServiceImpl implements SystemSettingService {

	@Override
	public void saveSystemSetting(SystemSetting systemSetting) throws SQLException {
		SystemSettingDao systemSettingDao=(SystemSettingDao)BeanFactory.getBean("systemSettingDao");
		systemSettingDao.saveSystemSetting(systemSetting);
	}

	@Override
	public SystemSetting findSystemSetting() throws SQLException {
		SystemSettingDao systemSettingDao=(SystemSettingDao)BeanFactory.getBean("systemSettingDao");
		return systemSettingDao.findSystemSetting();
	}

}
